interface ResponseData {
  code: number
  message: string
  ok: boolean
}

export interface UserListData {
  createTime?: string
  updateTime?: string
  id?: number
  username: string
  roleName?: string
  password: string
  name: string
  phone?: string
}

export interface UserListResponseData extends ResponseData {
  data: {
    records: UserListData[]
    total: number
    size: number
    current: number
    pages: number
  }
}

//单个角色数据对象
export interface RoleData {
  createTime: string
  id: number
  remark: string
  roleName: string
  updateTime: string
}
//查询用户角色接口返回的数据
export interface UserAndAllRoleResponseData extends ResponseData {
  data: {
    assignRoles: RoleData[]
    allRolesList: RoleData[]
  }
}
//分配角色接口需要携带的数据对象
export interface setUserRoleData {
  roleIdList: number[]
  userId: number
}
